package com.admin.testproject.activity

import android.os.Handler
import com.admin.testproject.BaseActivity
import com.admin.testproject.R
import com.admin.testproject.Testbean
import com.admin.testproject.fragment.DetailFragment

/**
 * author 吴昶
 * date 2019/6/4
 * 标注
 */
class NewDetailActivity :BaseActivity(){


    val detailFragmrnt=DetailFragment()
    val handler=Handler()

    override fun bindLayout(): Int {
        return R.layout.activity_new_detail
    }

    override fun bindData() {
        supportFragmentManager.beginTransaction().replace(R.id.frame_content,detailFragmrnt).commit()

    }

    override fun bindEvent() {
        val title=intent.getSerializableExtra("bean") as Testbean
        handler.postDelayed({
            detailFragmrnt.setValueData(title)
        },10)
    }

}